package com.fortune.dao;

import java.util.List;

import com.fortune.entity.DPermission;
import org.apache.ibatis.annotations.Param;

import com.fortune.vo.mPermission.Menu;

public interface DPermissionDao {
	/**
	 * 
	 * @param mId
	 * @param positionId
	 * @return
	 */
	List<Menu> listMenusByPositionId(@Param("dId") String dId, @Param("positionId") String positionId);

	List<String> listPermissions(@Param("dId") String dId, @Param("positionId") String positionId);

	List<DPermission> queryDPermission();

	int addDPositionPermission(@Param("dealerId") String dealerId,@Param("adminId") String adminId,@Param("list") List<DPermission> list);
}
